package com.fjut.zr.judge_system.POJO.PO;

import java.util.Objects;

public class TUserCustomInfoPO {
    private int id;
    private String nickname;
    private String username;
    private String avatarUrl;
    private Integer adjectiveId;
    private Integer articleId;
    private Integer sealId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getAdjectiveId() {
        return adjectiveId;
    }

    public void setAdjectiveId(Integer adjectiveId) {
        this.adjectiveId = adjectiveId;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getSealId() {
        return sealId;
    }

    public void setSealId(Integer sealId) {
        this.sealId = sealId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TUserCustomInfoPO that = (TUserCustomInfoPO) o;
        return id == that.id &&
                Objects.equals(nickname, that.nickname) &&
                Objects.equals(username, that.username) &&
                Objects.equals(avatarUrl, that.avatarUrl) &&
                Objects.equals(adjectiveId, that.adjectiveId) &&
                Objects.equals(articleId, that.articleId) &&
                Objects.equals(sealId, that.sealId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, nickname, username, avatarUrl, adjectiveId, articleId, sealId);
    }
}
